package com.decent.common.util.jackson;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.PackageVersion;

/**
 * @author wangyan
 * @date 2021/11/03
 */
public class EnumModule extends SimpleModule {
    private static final long serialVersionUID = 1037637313917947083L;

    public EnumModule() {
        super(PackageVersion.VERSION);
        this.addDeserializer(Enum.class, new EnumDeserializer());
    }
}
